/*
 * @Author: wuzhen
 * @Date: 2019-01-25 16:53:55
 * @LastEditors: wuzhen
 * @LastEditTime: 2019-02-21 15:49:13
 * @Description: 自定义指令
 */
import * as ClickOutside from 'v-click-outside-x';
// 按钮权限
import hasPermission from './hasPermission';
// 剪切板
import VueClipboard from 'vue-clipboard2';
const directives = {
  ClickOutside,
  hasPermission
};

export default {
  install(Vue) {
    Vue.use(VueClipboard);
    for (const key in directives) {
      Vue.directive(key, directives[key]);
    }
  }
};
